//
//  Person.h
//  PListStorage
//
//  Created by Gene Backlin on 7/11/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface BookItem : NSObject <NSCoding, NSCopying, NSMutableCopying> {
    NSString *pkId;//书的编码
	NSString *bookId;//书的编码
	NSString *bookCode;//书在apple商店的编码
	NSString *bookName;//书名
	NSString *bookEnglishName;//书英文名
	NSString *bookEditorInfo;//编辑推荐
    
	NSString *bookContentInfo;//内容介绍
	NSString *bookAuthorInfo;//作者介绍
	NSString *bookCatalog;//目录
	NSString *bookFreeContent;//试读内容
    NSString *bookIcon;//封面图片
    
    NSString *bookIconSmall;//封面剪切图片
    NSString *bookShot;//介绍预览图片
    NSString *book4PhoneResource;//手机资源（TXT）
    NSString *book4PhoneResourceType;//手机资源（TXT）
    NSString *book4PadResource;//平板资源（PDF）
    
    NSString *book4PadResourceType;//平板资源（PDF）
    NSString *bookSeries;//系列
    NSString *bookPrice;//书价
    NSString *bookPrice2;//优惠书价
    NSString *bookPricePrint;//出版书价
    
    NSString *bookLanguage;//语言 
    NSString *bookAuthor;//作者
    NSString *bookTranslator;//译者
    NSString *bookPress;//出版社
    NSString *bookIssn;//ISSN/ISBN
    
    NSString *bookPressTime;//出版时间  
    NSString *bookPages;//页数
    NSString *bookWords;//字数
    NSString *bookScore;//积分
    NSString *bookCategory;//书目录编号
    
    NSString *bookCategory1;//书目录名称  
    NSString *bookHot;//推荐（1）
    NSString *bookStar;//图书星级
    NSString *bookState;//图书状态
    NSString *bookDownFlag;//下载：1=下载；其他未下载
    
    NSString *bookDownCount;//下载次数
    NSString *bookFocusCount;//查看详细次数
    NSString *bookCommentCount;//查看详细次数
    NSString *bookBuyFlag;//购买标志（1=购买；其他未购买）
    NSString *bookMark;//书签位置，以逗号（，）分割
    NSString *bookDelete;//删除标志：默认0；1=删除书籍；2=删除条目
    
    NSString *bookExt1;//扩展1
    NSString *bookExt2;//扩展2
    NSString *bookExt3;//扩展3
    NSString *bookExt4;//扩展4
    NSString *bookExt5;//扩展5
    
    NSString *bookApprovalTime;//批准时间
    NSString *bookFavorite;//我收藏的图书
    NSString *bookIconFlag;//图书图标存储到本地状态（1）
}

@property (nonatomic, retain) NSString *pkId;
@property (nonatomic, retain) NSString *bookId;//书的编码
@property (nonatomic, retain) NSString *bookCode;//书在apple商店的编码
@property (nonatomic, retain) NSString *bookName;//书名
@property (nonatomic, retain) NSString *bookEnglishName;//书英文名
@property (nonatomic, retain) NSString *bookEditorInfo;//编辑推荐

@property (nonatomic, retain) NSString *bookContentInfo;//内容介绍
@property (nonatomic, retain) NSString *bookAuthorInfo;//作者介绍
@property (nonatomic, retain) NSString *bookCatalog;//目录
@property (nonatomic, retain) NSString *bookFreeContent;//试读内容
@property (nonatomic, retain) NSString *bookIcon;//封面图片
@property (nonatomic, retain) NSString *bookIconSmall;//封面图片

@property (nonatomic, retain) NSString *bookShot;//介绍预览图片
@property (nonatomic, retain) NSString *book4PhoneResource;//手机资源（TXT）
@property (nonatomic, retain) NSString *book4PhoneResourceType;//手机资源（TXT）
@property (nonatomic, retain) NSString *book4PadResource;//平板资源（PDF）
@property (nonatomic, retain) NSString *book4PadResourceType;//平板资源（PDF）
@property (nonatomic, retain) NSString *bookSeries;//系列
@property (nonatomic, retain) NSString *bookPrice;//书价

@property (nonatomic, retain) NSString *bookPrice2;//优惠书价
@property (nonatomic, retain) NSString *bookPricePrint;//优惠书价
@property (nonatomic, retain) NSString *bookLanguage;//语言 
@property (nonatomic, retain) NSString *bookAuthor;//作者
@property (nonatomic, retain) NSString *bookTranslator;//译者
@property (nonatomic, retain) NSString *bookPress;//出版社

@property (nonatomic, retain) NSString *bookIssn;//ISSN/ISBN
@property (nonatomic, retain) NSString *bookPressTime;//出版时间  
@property (nonatomic, retain) NSString *bookPages;//页数
@property (nonatomic, retain) NSString *bookWords;//字数
@property (nonatomic, retain) NSString *bookScore;//积分

@property (nonatomic, retain) NSString *bookCategory;//书目录编号
@property (nonatomic, retain) NSString *bookCategory1;//书目录名称  
@property (nonatomic, retain) NSString *bookHot;//推荐（1）
@property (nonatomic, retain) NSString *bookStar;//图书星级
@property (nonatomic, retain) NSString *bookState;//图书状态

@property (nonatomic, retain) NSString *bookDownFlag;//下载：1=下载；其他未下载
@property (nonatomic, retain) NSString *bookDownCount;//下载次数
@property (nonatomic, retain) NSString *bookFocusCount;//下载次数
@property (nonatomic, retain) NSString *bookCommentCount;
@property (nonatomic, retain) NSString *bookBuyFlag;//购买标志（1=购买；其他未购买）
@property (nonatomic, retain) NSString *bookMark;//书签位置，以逗号（，）分割
@property (nonatomic, retain) NSString *bookDelete;//删除标志：默认0；1=删除书籍

@property (nonatomic, retain) NSString *bookExt1;//扩展1
@property (nonatomic, retain) NSString *bookExt2;//扩展2
@property (nonatomic, retain) NSString *bookExt3;//扩展3
@property (nonatomic, retain) NSString *bookExt4;//扩展4
@property (nonatomic, retain) NSString *bookExt5;//扩展5

@property (nonatomic, retain) NSString *bookApprovalTime;
@property (nonatomic, retain) NSString *bookFavorite;
@property (nonatomic, retain) NSString *bookIconFlag;

@end


@interface CategoryCount : NSObject {
    NSString *categoryName;
    NSString *categoryCount;
}

@property (nonatomic, retain) NSString *categoryName;//目录名称
@property (nonatomic, retain) NSString *categoryCount;//目录下的图书数量

@end


@interface AdItem : NSObject {
    NSString *adId;
    NSString *adTitle;
    NSString *adAbstract;
    NSString *ad4Phone;
    NSString *ad4Pad;
    NSString *image4Phone;
    NSString *image4Pad;
    NSString *adContent;
    NSString *adState;
    NSString *ext1;
    NSString *ext2;
    NSString *ext3;
    NSString *ext4;
    NSString *ext5;
}

@property (nonatomic, retain) NSString *adId;
@property (nonatomic, retain) NSString *adTitle;
@property (nonatomic, retain) NSString *adAbstract;
@property (nonatomic, retain) NSString *ad4Phone;
@property (nonatomic, retain) NSString *ad4Pad;
@property (nonatomic, retain) NSString *image4Phone;
@property (nonatomic, retain) NSString *image4Pad;
@property (nonatomic, retain) NSString *adContent;
@property (nonatomic, retain) NSString *adState;
@property (nonatomic, retain) NSString *ext1;
@property (nonatomic, retain) NSString *ext2;
@property (nonatomic, retain) NSString *ext3;
@property (nonatomic, retain) NSString *ext4;
@property (nonatomic, retain) NSString *ext5;

@end